home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Mouse Options.xpl < prev    next >
Text File  |  1999-05-12  |  2KB  |  55 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="General Usage\Mouse"
  5. "NAME"="Mouse Options"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Activate window when mouse passes it (X Windows Style)"
  8. "TEXT 2"="Move mouse pointer to default button"
  9. "TEXT 3"="C"
  10. "TEXT 4"="D"
  11. "DESCRIPTION 1"="If the first option is activated, a window is activated a soon as the mouse pointer is over it."
  12. "DESCRIPTION 2"="If the second option is activated, the mouse pointer is automatically moved to the default button in dialogs (that is, the button with the black border)."
  13. "DESCRIPTION 3"="Both options do not work on Windows 95."
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  17. "COMMENT 2"="Version 1.2"
  18.  
  19.  
  20. sP="HKCU\Control Panel\Mouse\"
  21. v1="ActiveWindowTracking" 'DWord
  22. v2="SnapToDefaultButton" 'String
  23. Sub Plugin_Initialize 
  24.  i=RegReadValue(sp & v1)
  25.  if i=1 then SetUIElement 1,true
  26.  
  27.  i=RegReadValue(sp & v2)
  28.  if i=1 then SetUIElement 2,true
  29. End Sub
  30.  
  31. Sub Plugin_CheckData(ElementIndex)
  32. End Sub
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  b=GetUIElement(1)
  36.  if b=true then
  37.   Call RegWriteValue(sp & v1,1,2)
  38.  else
  39.   Call RegWriteValue(sp & v1,0,2)
  40.  end if
  41.  
  42.  b=GetUIElement(2)
  43.  if b=true then
  44.   Call RegWriteValue(sp & v2,1,1)
  45.  else
  46.   Call RegWriteValue(sp & v2,0,1)
  47.  end if
  48.  
  49.  Restart
  50. End Sub
  51.  
  52.  
  53. Sub Plugin_Terminate 
  54. End Sub
  55.